Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vcl/icon

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vcl/icon

Icon

  • 0.4.6
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
4
Weekly downloads
 
Created
Source

VCL icon

Icon.

Features

Can be used to display icons from the following sources:

  • img-tag based media objects (bitmaps like .png or vectors like .svg can be used)
  • CSS class based (for media objects embedded as background-image or glyphs from icon fonts),
  • inline SVG, use-tag refs.

There is no size defined by the icon class. Sizing should be done by the surrounding container, the inherited font-size or modifiers like vclIconSize1.

Usage

Based on an img tag using bitmap (PNG) and vector (SVG) in this example.

img-tag based media objects example

Based on a background image. The size is defined by the container and the use of vclLayoutFit on the div carrying the background image.

background image based media objects example

CSS class based (icon font).

CSS class based with icon font example

Inline SVG based.

inline-svg example

Classes

  • vclIcon

Modifiers

  • vclIconSize1: Default size for non icon-font based icons ~24px.
  • vclIconSize2: ~36px.
  • vclIconSize3: ~48px.

Variables

Demo

example.html on GH-pages.

Keywords

FAQs

Package last updated on 13 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc